Posts

Memory mapped I/O and Isolated I/O

CPU needs to communicate with the various memory and input-output devices (I/O) as we know data between the processor and these devices flow with the
2 min read

 

Memory mapped I/O and Isolated I/O


As a CPU needs to communicate with the various memory and input-output devices (I/O) as we know data between the processor and these devices flow with the help of the system bus. There are three ways in which system bus can be allotted to them :

  1. Separate set of address, control and data bus to I/O and memory.
  2. Have common bus (data and address) for I/O and memory but separate control lines.
  3. Have common bus (data, address, and control) for I/O and memory.

In first case it is simple because both have different set of address space and instruction but require more buses.

Isolated I/O –

Then we have Isolated I/O in which we Have common bus(data and address) for I/O and memory but separate read and write control lines for I/O. So when CPU decode instruction then if data is for I/O then it places the address on the address line and set I/O read or write control line on due to which data transfer occurs between CPU and I/O. As the address space of memory and I/O is isolated and the name is so. The address for I/O here is called ports. Here we have different read-write instruction for both I/O and memory. 

Memory Mapped I/O –

In this case every bus in common due to which the same set of instructions work for memory and I/O. Hence we manipulate I/O same as memory and both have same address space, due to which addressing capability of memory become less because some part is occupied by the I/O.  Differences between memory mapped I/O and isolated I/O –

Isolated I/OMemory Mapped I/O
Memory and I/O have separate address spaceBoth have same address space
All address can be used by the memoryDue to addition of I/O addressable memory become less for memory
Separate instruction control read and write operation in I/O and MemorySame instructions can control both I/O and Memory
In this I/O address are called ports.Normal memory address are for both
More efficient due to separate busesLesser efficient
Larger in size due to more busesSmaller in size
It is complex due to separate logic is used to control both.Simpler logic is used as I/O is also treated as memory only.

You may like these posts

  •  Computer InstructionsComputer instructions are a set of machine language instructions that a particular processor understands and executes. A computer performs tasks on the b…
  •  An instruction is a set of codes that the computer processor can understand. The code is usually in 1s and 0s, or machine language. It contains instructions or tasks that con…
  •  Instruction CycleA program residing in the memory unit of a computer consists of a sequence of instructions. These instructions are executed by the processor by going through…
  • In Computer Organisation, the register is utilized to acknowledge, store, move information and directions that are being utilized quickly by the CPU. There are different kinds of r…
  •  Types of Register in Computer OrganizationIn Computer Organisation , the register is utilized to acknowledge, store, move information and directions that are being utilized q…
  •  Functional Units of Digital SystemA computer organization describes the functions and design of the various units of a digital system.A general-purpose computer system is the…

Post a Comment

© 2025CSA. The Best Codder All rights reserved. Distributed by